pre {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin: 1.5rem 0;
  overflow: hidden;
  position: relative;
}

pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

:not(pre) > code {
  background-color: var(--primary-alpha-strong);
  color: var(--primary-dark);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

